<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$intLID = (int)$_data["ID"];
$arrThroughOddsGap = $_data["ThroughOddsGap"];

$data["Lotto_1_x"] = str_replace("\n", "", $data["Lotto_1_x"]);
$data["Lotto_2_x"] = str_replace("\n", "", $data["Lotto_2_x"]);
$data["Lotto_3_x"] = str_replace("\n", "", $data["Lotto_3_x"]);
$data["ThroughOddsGap_x"] = implode(",", $arrThroughOddsGap);

if(UpdateSQL($intLID, $data, "`bet_Lotto`")){
	//產生 Lotto Data 檔案
	if(!MakeLottoDataFile())ErrMsgOutputHTML("Error", "", 1);

	@mysql_close($$_Conn);
	header("Location: ".basename($_SERVER["PHP_SELF"])."?op=List&Page=".(string)intval($_data["Page"]));
	exit();
}
ErrMsgOutputHTML("Error", "", 1);
?>